core: Add generic "commit filter" API, use it to implement statoverride
authorColin Walters <walters@verbum.org>
Sun, 22 Jan 2012 18:27:38 +0000 (13:27 -0500)
committerColin Walters <walters@verbum.org>
Sun, 22 Jan 2012 18:27:38 +0000 (13:27 -0500)
commite8dbaa3c077a712cfe064e968433be2afb0f568f
treebc99e537e0551df574633a8873e4e3500fd07bec
parenta322ecacba0eba22d64a2303c0623e7b04efd1cb
core: Add generic "commit filter" API, use it to implement statoverride

The builder wants the ability to mark a given file as e.g. setuid.  To
implement this, the repo now has a callback-based API when importing a
directory to modify or remove items.

The commit tool accepts a "statoverride" file as input which looks like:

+mode /path/to/file
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-commit.c
tests/t0000-basic.sh